
<div class="top">
    <div class="wrap">
        <div class="welcome">你好，欢迎您来到政信联众互联网信息服务有限公司！</div>
        <div class="favorite">
            <a href="javascript:void(0);" onclick="AddFavorite('我的网站',location.href)" >加入收藏</a> |
            <a href="javascript:void(0);" onclick="SetHome(this,location.href);">设为首页</a>
        </div>
    </div>
</div>
<!--logo+搜索-->
<div class="header">
    <div class="wrap">
        <div class="logo">
            <a href="/"><img src="/Public/Home/images/logo.png"/></a>
        </div>
        <div class="search">
            <form method="post" action="{:U('Keyword/index')}" onsubmit="return detection()">
                <input class="text" type="text" name="keyword" placeholder="请输入搜索关键字"/>
                <input type="submit" class="btn" value="">
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    function Trim(str)
    {
        return str.replace(/(^\s*)|(\s*$)/g, "");
    }
    function detection(){
        var keyword=$("input[name='keyword']").val();
        if(Trim(keyword)==""){
               alert("请输入关键字");
            return false;
        }
    }
   $(function(){
       $(window).scroll(function(){
           $(".top").css("display","none");
            $(".header").addClass("headeer");
           $(".navigation").addClass("navigationn");

           var top = $(this).scrollTop();
           if (top==0){
               $(".top").css("display","block");
               $(".header").removeClass("headeer");
               $(".navigation").removeClass("navigationn");
           }

           if(top>646){
               $(".sc").css("display","block");
           }
       })
   })
</script>
<!--菜单-->
<div class="navigation">
    <div class="wrap">
        <ul>
            <think:nav name="nav">
                <eq name="nav.pid" value="0">
                    <li >
                        <a <php>
                        if(strstr($nav['url'],CONTROLLER_NAME)){
                        echo "style='background-color: #D64A4A;'";
                        }
                    </php>   href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">
                            {$nav.title}
                        </a>
                    </li>
                </eq>
            </think:nav>
        </ul>
    </div>
</div>
<div id="body"></div>
<block name="banner">

    <div  class="banner" style="background-image: url('/Public/Home/images/banner_index.jpg') ">

    </div>
</block>














<!--<think:nav name="nav">
    <eq name="nav.pid" value="0">
        <li>
            <a href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">
                <div class="cn same"><p>{$nav.title}</p></div>
                <div class="en same">{$nav.english_name}</div>
            </a>
        </li>
    </eq>
</think:nav>-->






